package com.lxp.project.system.controller;

import com.lxp.framework.web.domain.AjaxResult;
import com.lxp.project.system.domain.SysUser;
import com.lxp.project.system.service.ISysRegisterService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * 注册验证
 *
 * @author Administrator
 */
@RestController
public class SysRegisterController {
    @Resource
    private ISysRegisterService registerService;

    /**
     * 注册方法
     *
     * @return 结果
     */
    @PostMapping("/register")
    public AjaxResult register(@RequestBody SysUser loginBody) {
        return registerService.register(loginBody);
    }

}
